package cn.yiyuan.base.until;

import cn.yiyuan.auth.entity.EmpEntity;
import cn.yiyuan.base.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @user m
 * @project car_mall_system
 * @date 2023-12-28
 * @package cn.yiyuan.base.until
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopUntil extends BaseEntity {
    /**
     默认数据进来是待审核
     */
    private static final long serialVersionUID = 1L;
    /** 待审核 */
    public static final Integer AUDIT = 1;
    /** 审核通过待激活 */
    public static final Integer AUDIT_ACTIVEATED = 2;
    /** 激活成功 */
    public static final Integer ACTIVEATED_SUCCESS= 3;
    /** 驳回 */
    public static final Integer REJECT = 0;
    /**入驻*/
    public static final int OPERATE_TYPE_REGISTER = 4 ;

    private Long id;
    @NotNull(message = "旺铺名称不能为空")
    private String name;
    @NotNull(message = "座机不能为空")
    private String tel;
    private Date registerTime;
    /**
     * 1=待审核  2=审核通过待激活 3=激活成功 4=驳回
     */
    private Integer state;
    @NotNull(message = "地址不能为空")
    private String address;
    @NotNull(message = "logo不能为空")
    private String logo;

    /**
     *  前端传过来的数据
     */

    @NotNull(message = "管理员不能为空")
    private EmpEntity admin;

    //经度
    private Double lng;
    //维度
    private Double lat;

    private ShopUntil shop;

    /**
     * 驳回次数
     */
    private Integer rejectedNum;


}
